<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">

<script type="text/javascript">
      var escape1 =escape("我的名字是：mosquito~");//编码
      console.log(escape1);
      var unescape1 = unescape(escape1); //解码
      console.log(unescape1);
</script>  


</head>
<body>



</body>
</html>